package oo1;

public class Battery {
	String color;
	int vol;// 容量
	String factory;

	public void showInfo() {
		System.out.println("这个电池属于" + factory);
		System.out.println("颜色是" + color + ",容量是" + vol + "毫安");
	}
}
